package lyroot.entity;

public class User {

    private String name;

    public User() {

    }

    public User(String name) {
        this.name = name;
    }


    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    @Override
    public int hashCode() {
        return name.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        User user = (User) obj;
        return name.equals(user.getName());
    }
}
